# -*- coding: UTF-8 -*- 
#习题15：读取文件
from sys import argv;
script,filename = argv;
txt = open (filename);#打开文件
print ("Here's your file %r:" % filename);
print (txt.read());#读取文件信息
print ("Type the filename again:");

file_again = input ("> ");
txt_again = open (file_again);#打开文件
print (txt_again.read()); #读取文件信息

txt.close();
txt_again.close();
